{#
Copyright (c) 2020 Andy Zhou
MIT License
#}
<div class="col-md-4 sidebar">
    {% if current_user.is_authenticated %}
        <div class="card mb-3">
            <div class="card-header">{{ _('Quick Actions') }}</div>
            <ul class="list-group list-group-flush">
                <a class="list-group-item" href="{{ url_for('main.write') }}">
                    {{ _('Write a post') }}
                </a>
                <a class="list-group-item" href="{{ url_for('main.manage_posts') }}">
                    {{ _('Manage your posts') }}
                </a>
                <a class="list-group-item" href="{{ url_for('main.collected_posts') }}">
                    {{ _('Show your collections') }}
                </a>
                <a class="list-group-item" href="{{ url_for('user.show_followers', username=current_user.username) }}">
                    {{ _('Show your followers') }}
                </a>
            </ul>
        </div>
        {% if current_user.is_administrator() %}
        <div class="card mb-3">
            <div class="card-header">{{ _('Admin Actions') }}</div>
            <ul class="list-group list-group-flush">
                <a class="list-group-item" href="{{ url_for('admin.manage_users') }}">
                    {{ _('Manage Users') }}
                </a>
                <a class="list-group-item" href="{{ url_for('main.main') }}">
                    {{ _('Manage Posts') }}
                </a>
            </ul>
        </div>
        {% endif %}
    {% endif %}
</div>